package Dream1;

public class Test2 {
    public static void main(String[] args)
            throws CloneNotSupportedException {
        Test1 test1 = new Test1("zhangsan", 20);
//clone克隆
        Test1 test2 = (Test1) test1.clone();
    }
}
